package ubadbtools.deadlockAnalyzer.scheduleRecords;

import ubadbtools.deadlockAnalyzer.exceptions.TransitionException;
import ubadbtools.deadlockAnalyzer.transactions.TRXState;

//import ubadbtools.deadlockAnalyzer.database.Database;
//import ubadbtools.deadlockAnalyzer.exceptions.TransitionException;


public class StartRecord extends ScheduleRecord
{
	public StartRecord(String transaction) 
	{
		this.transaction = transaction;
	}
	
	public String toString()
	{
		return "START"; 
	}
	
	protected boolean okPrecondition() {
		return true;
	}
	
	protected void setPoscondition() {
		// No hace nada.
	}
	
	protected TRXState getNextTRXState() throws TransitionException {
		return getTRX().getTRXState().start();
	}

	
}
